package com.wuwei.service.impl;

import com.wuwei.dao.PaymentDao;
import com.wuwei.pojo.Payment;
import com.wuwei.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @description: PaymentServiceImpl <br>
 * @date: 2021/2/5 17:52 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;

    public Integer createPayment(Payment payment) {
        return paymentDao.createPayment(payment);
    }

    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
